﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" >
        <title>复选框checkbox的简单应用</title>
    </head>
    <body>
        <h3>复选框checkbox的简单应用</h3>
        <hr />
        问卷调查：您是通过何种方式了解XX产品的？
        <form method="post" action="URL">
            <input type="checkbox" name="group1" value="1"/>
            朋友推荐
            <br />
            <input type="checkbox" name="group1" value="2" checked />
            搜索引擎
            <br />
            <input type="checkbox" name="group1" value="3" checked />
            媒体宣传
            <br />
            <input type="checkbox" name="group1" value="4" checked />
            其他
        </form>
    </body>
</html>
